home *** CD-ROM | disk | FTP | other *** search
- From: Kay Roemer <roemer@informatik.uni-frankfurt.de>
- Posted-Date: Tue, 8 Feb 94 8:29:23 MEZ
- Received-Date: Tue, 8 Feb 94 08:29:23 +0100
- Message-Id: <9402080729.AA23936@hera.rbi.informatik.uni-frankfurt.de>
- Subject: Re: fchmod function
- To: herborth@53iss6.waterloo.ncr.com (Chris Herborth)
- Date: Tue, 8 Feb 94 8:29:23 MEZ
- In-Reply-To: <9402071555.dd02646@ncrhub1.NCR.COM>; from "Chris Herborth" at Feb 7, 94 2:42 pm
- Mailer: Elm [revision: 70.85]
-
- >
- > One of the programs I'm porting uses fchmod()... has anyone written one
- > that can be added to the MiNTlibs? There currently isn't one in there
-
- I think with the current version of MiNT a real fchmod() is not possible
- (Tell me if I'm wrong). Fchmod() takes a filename, not a descriptor. So
- it would be necessary to add a new ioctl(), lets say FCHMOD.
-
- The only way to do an fchmod() without this is to get the files inode/dev
- numbers with fstat() (yes there is an FSTAT ioctl) and search the whole
- filesystem for the file with this inode/dev and then do an Fchmod() on
- this file.
- But this idea is a poor one, since inodes on TosFs are fake and
- filesystems tend to be very large :)
-
- Cheers, Kay Roemer.
-